package com.qq2008.game.mojie.form;

import java.util.List;

/**
 * 通用JSON返回格式
 */
public class JSONResult extends Result {

    /**
     * 返回对象数据
     */
    private Object form;

    public JSONResult() {
        super();
    }

    public JSONResult(int id, boolean flag, String code, String message, Object form, List<Object> data) {
        super(id, flag, code, message, data);
        this.form = form;
    }

    public static JSONResult jsonResult(int id, boolean flag, String code, String message, Object form,
                                        List<Object> data) {
        return new JSONResult(id, flag, code, message, form, data);
    }

    public Object getForm() {
        return form;
    }

    public void setForm(Object form) {
        this.form = form;
    }

}
